import request from '@/utils/request'

const baseUrl = 'payment/pay_config'

/**
 * 获取支付配置
 * @return {*}
 */
export function getPayConfig() {
  return request({
    url: baseUrl, method: 'get'
  })
}

/**
 * 新增或修改设置
 * @param data
 * @return {AxiosPromise}
 */
export function addOrUpdateScanPaySetting(data) {
  return request({
    url: baseUrl, method: data.id ? 'put' : 'post', data: data
  })
}
